﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using DataLayer.dbml;
using DataLayer.Controller;
using System.Configuration;


public partial class home_ServiciosPorPlataforma : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            //this.hdnNit.Value = "899999115-00";
            this.hdnNit.Value = Request.QueryString["NIT"].ToString();
            this.GetServiciosByPlataforma();
        }
    }

    private void GetServiciosByPlataforma()
    {
        DataTable dt = ServicesController.GetCantidadServiciosByPlataforma(this.hdnNit.Value);
        this.grdServiciosPlataforma.DataSource = dt;
        this.grdServiciosPlataforma.DataBind();
    }

    protected void grdServiciosPlataforma_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if ((e.Row.RowType == DataControlRowType.Header) || (e.Row.RowType == DataControlRowType.DataRow))
        {
            for (int i = 0; i < e.Row.Cells.Count; i++)
            {
                e.Row.Cells[i].BorderStyle = BorderStyle.None;
            }
        }
    }
}
